package com.cls.business.service;

import com.cls.business.entity.DeclareTopic;
import com.cls.business.entity.Report;

import com.cls.business.vo.DeclareTopicVO;
import com.cls.common.entity.QueryRequest;
import com.github.pagehelper.PageInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 举报表 Service接口
 *
 * @author wmm
 * @date 2020-11-23 10:49:10
 */
public interface IReportService extends IService<Report> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param report report
     * @return PageInfo<Report>
     */
    PageInfo<Report> findReports(QueryRequest request, Report report);

    /**
     * 查询（所有）
     *
     * @param report report
     * @return List<Report>
     */
    List<Report> findReports(Report report);

    /**
     * 新增
     *
     * @param report report
     */
    void createReport(Report report);

    /**
     * 修改
     *
     * @param report report
     */
    void updateReport(Report report);

    /**
     * 删除
     *
     * @param ids ids
     */
    void deleteReports(String[] ids);


    PageInfo<DeclareTopicVO> findDeclareTopicsForReport(QueryRequest request, DeclareTopic declareTopic);


    DeclareTopicVO findDetail2Report(Long reportId);
}
